<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
	String path = request.getContextPath();
	String basePath = ContextHolder.getWebServerName(request);
%>
<div class="ui-tabs">
	<div data-role="navbar" data-active="${tabs}">
		<ul>
			<li class="${tab1 }"><a
				href="<%=basePath%>api/wechat/incident/myIncidentClosed?openid=${openid}&tabs=1"
				data-ajax="false" class="ui-link ui-btn ui-tabs-anchor">待评价</a>
			</li>
			<li class="${tab2 }"><a
				href="<%=basePath%>api/wechat/incident/myIncidentClosed?openid=${openid}&tabs=2"
				data-ajax="false">已评价</a></li>
		</ul>
	</div>
	<div id="one" class="ui-body-d ui-content">

		<ul data-role="listview" id="tab-1">
			<c:forEach var="incident" items="${incidents }">

				<li><a class="ui-link-inherit"
					href="<%=basePath%>api/wechat/incident/userSatisfaction?id=${incident.id }&openid=${openid}">
						<h3 class="ui-li-heading">${incident.title}</h3>
						<p class="ui-li-desc">（申报日期：${incident.create_date }）</p> </a>
				</li>

			</c:forEach>
		</ul>
	</div>
	<div id="two">
		<c:forEach var="incident" items="${incidentsFinish }">
			<ul data-role="listview" id="tab-2">
				<li><a class="ui-link-inherit"
					href="<%=basePath%>api/wechat/incident/incidentInfo?id=${incident.id }">
						<h3 class="ui-li-heading">${incident.title
							}（满意度：${incident.satisfaction}）</h3>
						<p class="ui-li-desc">（申报日期：${incident.create_date }）</p> </a>
				</li>
		</c:forEach>
		</ul>
		${pager }
	</div>
</div>

<script type="text/javascript">
$( "#tabs" ).tabs({
	  active: ${tabs}
	});
</script>

